package com.ft.mybatis.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ft.core.domain.entities.IDefaultLongEntity;

/**
 * @copyright (C), 2015-2019, 梵途科技有限公司
 * @fileName: AbstractLongEntity
 * @author: 李阳
 * @date: 2019/4/18 10:32
 * @description: 实体抽象(64位长整数)
 */
public abstract class AbstractLongEntity implements IDefaultLongEntity {
    private static final long serialVersionUID = 7020222798084212519L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Long id;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }
}
